package tv.dyndns.kishibe.client.packet;

import com.google.common.base.Objects;
import com.google.gwt.user.client.rpc.IsSerializable;

public class PacketImageLink implements IsSerializable, Comparable<PacketImageLink> {
	public int problemId;
	public String url;
	public int statusCode;

	@Override
	public String toString() {
		return Objects.toStringHelper(this).add("problemId", problemId).add("url", url)
				.add("statusCode", statusCode).toString();
	}

	@Override
	public int compareTo(PacketImageLink o) {
		return problemId != o.problemId ? problemId - o.problemId : url.compareTo(o.url);
	}
}
